<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head th:replace="/layout :: htmlhead" th:with="title='后台管理'">
</head>
<body>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-form-item" lay-filter="searchForm">
                <form class="layui-form" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">查验机构</label>
                        <div class="layui-input-inline">
                            <select id="cyqxhSearch">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-inline">
                            <input id="userNameSearch" class="layui-input" type="text"/>
                        </div>
                        <label class="layui-form-label">登录IP</label>
                        <div class="layui-input-inline">
                            <input id="terminalIdSearch" class="layui-input" type="text"/>
                        </div>
                        <div class="layui-input-inline">
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            <button class="layui-btn" lay-submit="" lay-filter="searchSubmit">查询</button>
                        </div>
                    </div>
                </form>

            </div>
            <div class="layui-card">
                <!--<div class="layui-card-header">-->
                <!--</div>-->
                <div class="layui-card-body">
                    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
                    <div id="stat" style="width: 100%;height:200px;"></div>
                    <table class="layui-hide" id="table" lay-filter="table"></table>

                    <script type="text/html" id="table-title">
                        <h2><b>安全日志列表</b></h2>
                    </script>

                    <script type="text/html" id="table-toolbar">
                        <a class="layui-btn layui-btn-xs" lay-event="view" shiro:hasPermission="securityLog:view">详细</a>
                    </script>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="securityLogEdit" class="layer_self_wrap" style="display:none;">
    <form id="securityLogForm" lay-filter="securityLogForm" class="layui-form layui-form-pane" method="post" style="margin-top: 20px;"
          action="">
        <div class="layui-form-item">
            <label class="layui-form-label">查验机构</label>
            <div class="layui-input-inline">
                <input name="organization" readonly class="layui-input" type="text">
            </div>
            <label class="layui-form-label">日志类型</label>
            <div class="layui-input-inline">
                <input name="logtype" readonly class="layui-input" type="text"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户姓名</label>
            <div class="layui-input-inline">
                <input name="user_name" readonly class="layui-input" type="text">
            </div>
            <label class="layui-form-label">终端标识</label>
            <div class="layui-input-inline">
                <input name="terminal_id" readonly class="layui-input" type="text"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">操作时间</label>
            <div class="layui-input-inline">
                <input name="operate_time" readonly class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">操作内容</label>
            <div class="layui-input-inline" style="width: 50%">
                <textarea name="operate_content" style="width: 100%;height: 100px"></textarea>
            </div>
        </div>
    </form>
</div>
<script th:src="@{/js/securityManager/securityLog.js}"></script>
</body>
</html>